using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
      public class Valuation
      {
         [Key]  
         [DisplayName("评价ID")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "link to product table不能空")]  
         [DisplayName("link to product table")] 
         public string ProductID { get; set; }
         [DisplayName("产品名称")] 
         public string ProductName { get; set; }
         [Required(ErrorMessage = "评价用户ID不能空")]  
         [DisplayName("评价用户ID")] 
         public int UserID { get; set; }
         [DisplayName("评价用户")] 
         public string UserName { get; set; }
         [DisplayName("评分数")] 
         public int Result { get; set; }
         [Required(ErrorMessage = "评价时间不能空")]  
         [DisplayName("评价时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("评价内容")] 
         public string Contents { get; set; }
         [Required(ErrorMessage = "是否显示不能空")]  
         [DisplayName("是否显示")] 
         public bool IsVisible { get; set; }
         [DisplayName("最后修改时间")] 
         public DateTime LastUpdateTime { get; set; }
         } 
} 
